package com.m3839.sdk.common.http.listener;

import com.m3839.sdk.common.core.ApiError;
import com.m3839.sdk.common.util.LogUtils;

import org.json.JSONException;

/**
 * @author ChenBaoyang
 * @description: DefaultHttpRequestListener
 * @date 2021/12/8 14:03
 */
public class DefaultHttpRequestListener extends SimpleHttpRequestListener{

    @Override
    public void onResult(String response) throws JSONException {
        LogUtils.flog(response);
    }

    @Override
    public void onError(ApiError apiError) {
        LogUtils.flog(apiError.toString());
    }
}
